package com.woniuxy.array02;

/**
 * description: Test2DimensionArray <br>
 * date: 2022/2/1 8:48 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */

/**
 * 二维数组
 */
public class Test2DimensionArray {
    public static void main(String[] args) {
        int[][] a = new int[3][];
        a[0] = new int[]{20, 30};
        a[1] = new int[]{10, 15, 80};
        a[2] = new int[]{50, 60};
        System.out.println(a[2][1]);

        //静态初始化二维数组
        int[][] b = {
                {20, 30, 40},
                {50, 20}, {100, 200, 300}
        };
        System.out.println(b[1][1]);
    }
}
